import request from '@/utils/request'

// 查询文件资料列表
export function listDrawing(query) {
  return request({
    url: '/system/drawing/list',
    method: 'get',
    params: query
  })
}

// 查询文件资料详细
export function getDrawing(drawId) {
  return request({
    url: '/system/drawing/' + drawId,
    method: 'get'
  })
}

// 新增文件资料
export function addDrawing(data) {
  return request({
    url: '/system/drawing',
    method: 'post',
    data: data
  })
}

// 修改文件资料
export function updateDrawing(data) {
  return request({
    url: '/system/drawing',
    method: 'put',
    data: data
  })
}

// 删除文件资料
export function delDrawing(drawId) {
  return request({
    url: '/system/drawing/' + drawId,
    method: 'delete'
  })
}  
